<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
    <title>天河教育管理系统</title>
    <script src="/bootstrap/js/jquery.min.js?v=2.1.4"></script>
    <script src="/bootstrap/js/bootstrap.min.js"></script>
    <link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css">
    <link href="/bootstrap/css/bootstrap.min.css" type="text/css" rel="stylesheet">
    <link href="/bootstrap/css/font-awesome.min.css?v=4.4.0" type="text/css" rel="stylesheet">
    <link href="/bootstrap/css/animate.min.css" type="text/css" rel="stylesheet">
    <link href="/bootstrap/css/style.min.css" type="text/css" rel="stylesheet">
    <link href="/bootstrap/css/login.min.css" type="text/css" rel="stylesheet">
    <link rel="stylesheet" type="text/css" href="/static/js/jquery-easyui/themes/metro-red/easyui.css">
    <link rel="stylesheet" type="text/css" href="/static/js/jquery-easyui/themes/icon.css">
    <script type="text/javascript" src="/static/js/jquery-easyui/jquery.easyui.min.js"></script>
    <script type="text/javascript" src="/static/js/jquery-easyui/locale/easyui-lang-zh_CN.js"></script>

    <!--[if lt IE 8]>
    <meta http-equiv="refresh" content="0;ie.html"/>
    <![endif]-->
    <script>
        $(function () {
            $("#loginButton").click(function () {
                $("#loginForm").form('submit', {
                    url: "/login",
                    success: function (data) {
                        data = $.parseJSON(data);
                        if (data.success) {
                            window.location.href = '/main';
                        } else {
                            $.messager.alert("警告:", data.msg, "error");
                        }
                    }
                })
            });

        });
    </script>


</head>
<body class="signin">
<div class="signinpanel">
    <div class="row">
        <div class="col-sm-7">
            <div class="signin-info">
                <div class="logopanel m-b">
                    <h1> 天河教育 </h1>
                </div>
                <div class="m-b"></div>
                <h4>欢迎使用 <strong>天河教育管理系统</strong></h4>
                <ul class="m-b">
                    <li style="font-size:20px"><i class="fa fa-arrow-circle-o-right m-r-xs"></i> 唐 颜真卿 劝学</li>
                    <li><i class="fa fa-arrow-circle-o-right m-r-xs"></i> 三更灯火五更鸡,</li>
                    <li><i class="fa fa-arrow-circle-o-right m-r-xs"></i> 正是男儿读书时。</li>
                    <li><i class="fa fa-arrow-circle-o-right m-r-xs"></i> 黑发不知勤学早,</li>
                    <li><i class="fa fa-arrow-circle-o-right m-r-xs"></i> 白首方悔读书迟。</li>
                </ul>
            </div>
        </div>
        <div>
            <div class="col-sm-5" style="display: block" id="loginchick">
                <form method="post" id="loginForm">
                    <div style="display: block">
                        <h4 class="no-margins">天河教育CRM管理系统</h4>
                        <p class="m-t-md"></p>
                        <p><input type="text" class="form-control uname" name="username" placeholder="账号" value="admin">
                        </p>
                        <p><input type="password" class="form-control pword m-b" name="password" placeholder="密码"
                                  value="000000"></p>
                        <input type="button" class="btn btn-success btn-block " id="loginButton" value="登&emsp;录">
                    </div>

                    <div style="margin-top: 10px">
                        <a id="wangjimima" href="/retrieve/retrieve" style="float: left">忘记密码了？</a>
                        <a target="_blank"
                           href="http://mail.qq.com/cgi-bin/qm_share?t=qm_mailme&email=8p_FkNyBgLKDg9yRnZ8"
                           style="text-decoration:none; float: right">联系管理员</a>
                    </div>
                </form>
            </div>

        </div>
    </div>
    <div class="signup-footer">
        <div class="pull-left">
            &copy; 2018 天河教育
        </div>
    </div>
</div>


</body>

</html>